package core.ui.demo;

import javafx.collections.ObservableList;
import javafx.scene.control.ChoiceBox;
import javafx.scene.effect.BlendMode;
/**
 * @author 李瑜
 * @since JavaFX 8.0
 */
public class DemoChoiceBox
{
	public static ChoiceBox<String> getChoiceBox()
	{
		ChoiceBox<String> choiceBox = new ChoiceBox<>();
		choiceBox.setBlendMode(BlendMode.GREEN);
		ObservableList<String> list = choiceBox.getItems();
		
		list.add("选项1");
		list.add("选项2");
		list.add("选项3");
		list.add("选项4");
		list.add("选项5");
		
		return choiceBox;
	}
}
